﻿fl.outputPanel.clear();
var currentDoc = fl.getDocumentDOM();
var library = currentDoc.library;


function init()
{
	len = library.items.length;
	var fonts = "Arial";
	
	for (var i=0;i<len;i++) 
	{
		var strName = library.items[i].name;
		
		library.editItem(library.items[i].name)
		timeline = currentDoc.getTimeline();

			for(var j=0; j < timeline.layers.length; j++)
     		{
        		for(var k=0; k < timeline.layers[j].frames.length; k++)
        		{
        		  var elements = timeline.layers[j].frames[k].elements;

          			for(var l in elements)
          			{
            			if(elements[l].elementType == "text")
            			{
              				//if(elements[l].textType == "static")
              				//{
								//elements[l].setTextAttr("face", fonts);
								//elements[l].setTextAttr("antiAliasType", 'advanced');
								//elements[l].setTextAttr("aliasText", false);
								//fl.trace(elements[l].getTextAttr("aliasText"));
								elements[l].fontRenderingMode = "advanced";
              				//}
            			}
          			}
        		}
			}
	} // end for
} // end func

init();